\<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
request.setCharacterEncoding("UTF-8");
String cp = request.getContextPath();
int i=0;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>이미지 게시판</title>
<link rel="stylesheet" href="/study/imageTest/data/style.css" type="text/css">


</head>
<body>
<br/>&nbsp;<br/>
<table width="900" cellpadding="0" cellspacing="3" align="center">
	<tr>
		<td bgcolor="#ffffff" align="center">
			<font size="5" face="휴먼편지체"><b>이미지 게시판</b></font><br/><br/><br/>
		</td>
	</tr>
</table>
<br/>


<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
   <tr height="30">
      <td align="left" width="50%">
       <font size="2" face="휴먼편지체">전체 데이터:${totalDataCount} ┃ 전체 페이지:${totalPage} ┃ 현재 페이지: ${pageNum}</font>
      </td>
      <td align="right">
        <input type="button" value=" 게시물 등록 " onclick="javascript:location.href='<%=cp%>/community/save.action?pageNum=${pageNum }';" class="btn1"/>
      </td>
    </tr>
</table>

<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr><td height="3" bgcolor="#6B66FF" align="center"></td></tr>
</table>

<table width="600" border="0" cellspacing="1" cellpadding="3" bgColor="#FFFFFF" align="center">
 <tr bgcolor="#FFFFFF"> 
  <c:forEach var="dto" items="${lists}">   
  <td>
  <table>
  <% i=i+1; %>
   <tr bgcolor="#FFFFFF">
    <td align="center" height="30" colspan="3">
    <b>${dto.listNum }. </b> <font color="#000000" size="4" ><b>${dto.subject }</b></font><br/>
    <a href="${dto.urlFile }"><img src="${imagePath}${dto.saveFileName}" width="180" height="180" border="0"></a></td>
    <td>

 </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td align="center" height="30" colspan="3">
    <a href="<%=cp %>/community/delete.action?fileNum=${dto.num}&pageNum=${pageNum}">삭제</a></td>
   </tr>
   
  </table>
  </td>
  <% 
   if(i%3 == 0){
   out.print("</tr>");
   out.print("<tr>");
   }
  %>
  
  </c:forEach>
 </tr>
 
 </table>

<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr><td height="3" bgcolor="#6B66FF" align="center"></td></tr>
</table>

<div id="footer">
  <p align="center">
  
   <font color="#6B66FF"> ${pageIndexList} </font>
  
  </p>
 </div>



</body>
</html>